package comday04.itheima02;

import java.util.Arrays;
import java.util.Random;

public class Demo07 {
    public static void main(String[] args) {

        //随机生成五个1-100的整数放在数组中

        int[] arr = new int[5];

        //随机数
        Random r = new Random();

        //循环
        for (int i = 0; i < arr.length; i++) {
            //生成1-100的随机数
            int a = r.nextInt(100)+1;
            arr[i] = a;
        }

        //快速打印数组元素
        System.out.println(Arrays.toString(arr));
    }
}
